package com.sinosoft.vaccinetoai.server.business.chatchainrecord.addchatchainrecord.controller;

import javax.validation.Valid;

import com.sinosoft.vaccinetoai.server.business.chatchainrecord.addchatchainrecord.io.AddChatChainRecordListIO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sinosoft.vaccinetoai.server.business.chatchainrecord.addchatchainrecord.vo.AddChatChainRecordVO;
import com.sinosoft.vaccinetoai.server.business.chatchainrecord.addchatchainrecord.service.IAddChatChainRecordService;

/**
 * @ClassName: AddChatChainRecordController
 * @ClassNameExplain: 
 * @Description: 新增聊天链历史列表接口
 * @author xiazhihao
 * @date 2023年12月18日 22:31
 */
@RestController("AddChatChainRecordController")
@RequestMapping("/chatChainRecord")
public class AddChatChainRecordController {
	
	@Autowired
	@Qualifier("AddChatChainRecordService")
	IAddChatChainRecordService addChatChainRecordService;
	
	/**
	 * @Title: addChatChainRecord
	 * @TitleExplain: 
	 * @Description: 新增聊天链历史列表接口方法
	 * @param addChatChainRecordListIO 入参
	 * @return AddChatChainRecordVO 返参
	 * @version 1.0.3
	 * @author xiazhihao
	 */
	@PostMapping("/add")
	public AddChatChainRecordVO addChatChainRecord(@Valid @RequestBody AddChatChainRecordListIO addChatChainRecordListIO) throws Exception {
		return addChatChainRecordService.addChatChainRecord(addChatChainRecordListIO);
	}
	
}
